<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<section class="layout-box mod-interact wj-mod-interact">
    <div class="mod-info wj-mod-info">
    
	    {{# var create_time;}}
	    {{# var strs= new Array();}}
	    {{# strs = share.created_at.split(',');}}
	    {{# if(strs.length > 1){ }}
	    {{# if(strs[2] == '1'){ }}
	    	{{# create_time = strs[0]+' ' + messages.secs;}} 
	    {{# }else if(strs[2] == '2'){ }}
	    	{{# create_time = strs[0] +' '+ messages.sec;}} 
	    {{# }else if(strs[2] == '3'){ }}
	    	{{# create_time = strs[0] +' '+ messages.mins;}}
	    {{# }else if(strs[2] == '4'){ }}
	    	{{# create_time = strs[0] +' '+ messages.min;}}
	    {{# }else if(strs[2] == '5'){ }}
	    	{{# create_time = messages.today+strs[0];}}
	    {{# }else if(strs[2] == '6'){ }}
	    	{{# create_time = messages.yesterday + strs[0];}}
	    {{# } }}
	    {{# }else{ }}
			<!--{{# create_time = share.created_at;}} -->
	    	{{# create_time = share.created_at.slice(0,5);}}
	    {{# } }}
		<div class="time">{{ create_time}}</div>
    </div>
    
 	{{# if (share.user.id == Page.getUser().id) { }}
   		<a href="javascript:void(0);" class="operate-box delete wj-delete"><spring:message code="del"/></a>
   	{{# }}}
   	
    <div class="wj-btn-group">
    
	    <a href="javascript:void(0);" class="forward">
	    	<i class="iconfont">&#xe606;</i>
	    	<input value="{{# if (share.forwards.length > 0){ }}{{share.forwards.length}}{{# } }}" type="hidden" />
			<%--<span style="margin-left: 10px;">{{# if (share.forwards.length > 0){ }}{{share.forwards.length}}{{# } else { }}<spring:message code="repeat"/>{{# } }}</span> --%>
	    </a>
	    <a href="javascript:void(0);" class="comment">
	    	<i class="iconfont">&#xe601;</i>
	    	<input value="{{# if (share.comments.length > 0){ }}{{share.comments.length}}{{# } }}" type="hidden" />
			<%--<span style="margin-left: 14px;">{{# if (share.comments.length > 0){ }}{{share.comments.length}}{{# } else { }}<spring:message code="comment"/>{{# } }}</span> --%>
	   	</a>
	    <a href="javascript:void(0);" class="like{{# if (share.liked){ }} selected{{# } }}">
	    	<i class="iconfont">&#xe60a;</i>
	    	<input value="{{# if (share.likes.length > 0){ }}{{share.likes.length}}{{# } }}" type="hidden" />
			<%--<span>{{# if (share.likes.length > 0){ }}{{share.likes.length}}{{# } else { }}<spring:message code="like"/>{{# } }}</span> --%>
	    </a>
    </div>
</section>